TARGET		= tcpuart
OBJ			= $(TARGET).o

CROSS-PATH	= $(HOME)/local/raspberrypi/raspberrypi-tools-772201f/arm-bcm2708/x86-linux64-cross-arm-linux-hardfp/bin
CROSS		= arm-bcm2708hardfp-linux-gnueabi-
CC			= $(CROSS-PATH)/$(CROSS)gcc
#CC			= gcc
CFLAGS		= -g -Wall
LFLAGS		=
LIB			=
INC			=

$(TARGET):	$(OBJ)
			$(CC) $(CFLAGS) $(LFLAGS) $(LIB) $(OBJ) -o $@

%.o:		%.c
			$(CC) -c $(CFLAGS) $(INC) -o $@ $<

all:		$(TARGET)

clean:
			rm -f *.o $(TARGET)

